import service from '../utils/request'
//获取管理员列表
export function adminList(payload = {}) {
    return service({
        url: '/user/getadmin',
        params: '',//get请求的参数
        method: 'get' //get请求
    })
}
//注册管理员
export function register(payload = {}) {
    return service({
        url: '/user/register',
        data: payload,//get请求的参数
        method: 'post' //get请求
    })
}
//删除管理员
export function Deleteadmin(payload = {}) {
    return service({
        url: '/user/deleteadmin',
        params: payload,//get请求的参数
        method: 'get' //get请求
    })
}

//编辑管理员
export function editadmin(payload = {}) {
    return service({
        url: '/user/editadmin',
        params: payload,//get请求的参数
        method: 'get' //get请求
    })
}
//登录
export function userLogin(payload = {}) {
    return service({
        url: '/user/login',
        data: payload,//get请求的参数
        method: 'post' //get请求
    })
}
//查询
export function userSearchs(payload = {}) {
    return service({
        url: '/user/search',
        params: payload,//get请求的参数
        method: 'get' //get请求
    })
}
//查询2
export function usersearchtwo(payload = {}) {
    return service({
        url: '/user/searchtwo',
        params: payload,//get请求的参数
        method: 'get' //get请求
    })
}